package com.kt.mes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 工位对象 t_site
 * 
 * @author lzc
 * @date 2021-01-08
 */
public class Site extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工位编号 */
    private String siteId;

    /** ID */
    private Long id;

    /** 工位名称 */
    @Excel(name = "工位名称")
    private String siteName;

    /** 产线编号 */
    @Excel(name = "产线编号")
    private String plId;

    private String plcId; //PLC识别号

    /** PLC类型 */
    @Excel(name = "PLC类型")
    private String sitePlc;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 工位IP */
    @Excel(name = "工位IP")
    private String siteIp;

    /** 工位图片 */
    @Excel(name = "工位图片")
    private String siteImg;

    public void setSiteId(String siteId) 
    {
        this.siteId = siteId;
    }
    @NotBlank(message = "工位编号不能为空")
    public String getSiteId() 
    {
        return siteId;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSiteName(String siteName) 
    {
        this.siteName = siteName;
    }

    public String getSiteName() 
    {
        return siteName;
    }
    public void setPlId(String plId) 
    {
        this.plId = plId;
    }

    public String getPlId() 
    {
        return plId;
    }
    public void setSitePlc(String sitePlc) 
    {
        this.sitePlc = sitePlc;
    }

    public String getSitePlc() 
    {
        return sitePlc;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setSiteIp(String siteIp) 
    {
        this.siteIp = siteIp;
    }

    public String getSiteIp() 
    {
        return siteIp;
    }
    public void setSiteImg(String siteImg) 
    {
        this.siteImg = siteImg;
    }

    public String getSiteImg() 
    {
        return siteImg;
    }

    public String getPlcId() {
        return plcId;
    }

    public void setPlcId(String plcId) {
        this.plcId = plcId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("siteId", getSiteId())
            .append("id", getId())
            .append("siteName", getSiteName())
            .append("plId", getPlId())
            .append("sitePlc", getSitePlc())
            .append("status", getStatus())
            .append("siteIp", getSiteIp())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("siteImg", getSiteImg())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
